CC = iccavr
CFLAGS =  -e -D__ICC_VERSION="7.14C" -DATMEGA -DATMega128  -l -g -Mavr_enhanced -Wf-use_elpm 
ASFLAGS = $(CFLAGS)  -Wa-g
LFLAGS =  -g -e:0x20000 -ucrtatmega.o -bfunc_lit:0x8c.0x20000 -dram_end:0x10ff -bdata:0x100.0x10ff -dhwstk_size:30 -beeprom:0.4096 -fihx_coff -S2
FILES = dcmotor.o 

EX_AM-CD2L:	$(FILES)
	$(CC) -o EX_AM-CD2L $(LFLAGS) @EX_AM-CD2L.lk   -lcatm128
dcmotor.o: C:\iccv7avr\include\iom128v.h C:\iccv7avr\include\macros.h C:\iccv7avr\include\stdio.h C:\iccv7avr\include\stdarg.h C:\iccv7avr\include\_const.h
dcmotor.o:	C:\KD-128~1\ex_AM_CD2L_example\dcmotor.c
	$(CC) -c $(CFLAGS) C:\KD-128~1\ex_AM_CD2L_example\dcmotor.c
